<nz-card    [nzTitle]="cardTitle" [nzExtra]="extraTemplate">

  <nz-table #basicTable  [nzData]="ol"  [nzScroll]="{ y: '520px' }" >
    <thead>
    <tr>
      <th>类型</th>
      <th>品名</th>
      <th>生产批次</th>
      <th>实际出库数量</th>
    <!--  <th>单位</th>
      <th>调拨人员</th>-->
      <th>出库人</th>
      <th>出库日期</th>
      <th>处理情况</th>
      <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let data of basicTable.data; let i=index;">
      <td>{{data.type}}</td>

      <td>{{data.pm}}</td>
      <td>{{data.scpc}}</td>
      <td [hidden]="data.type=='包材'">{{data.sddbsl}}</td>
      <td [hidden]="data.type=='咖啡'">{{data.bcdbsl}}</td>
  <!--    <td>{{data.dbdw}}</td>
      <td>{{data.dbry}}</td>-->

      <td>{{data.ckr}}</td>
      <td>{{data.ckrq}}</td>
      <td>{{data.clqk}}</td>

      <td>
        <a nz-button nzType="primary" (click)="outbound(data.dbdid)">出库</a>
      </td>
    </tr>
    </tbody>
  </nz-table>


</nz-card>
<ng-template #cardTitle>


  <nz-row [nzGutter]="16">

<!--
    <nz-col>
      <nz-statistic [nzValue]="sdsl" [nzTitle]="'在库生豆数量'" [nzSuffix]="'公斤'" [nzValueStyle]="{ color: '#3F8600' }"></nz-statistic>
    </nz-col>

    <nz-col>
      <nz-statistic [nzValue]="bcsl" [nzTitle]="'在库包材数量'" [nzSuffix]="'个'" [nzValueStyle]="{ color: '#CF1322' }"></nz-statistic>
    </nz-col>-->

    <nz-col>
      <nz-statistic  [nzValue]="sdsl" [nzTitle]="'在库生豆总量'" [nzSuffix]="'公斤'" [nzValueStyle]="{ color: '#3F8600' }"></nz-statistic>
    </nz-col>

    <nz-col *ngFor="let s of sl">
      <nz-statistic  [nzValue]="s.total" [nzTitle]="s.pm" [nzSuffix]="'公斤'" ></nz-statistic>
    </nz-col>
    &nbsp;
    &nbsp;
    &nbsp;
    &nbsp;
    <nz-col>
      <nz-statistic [nzValue]="bcsl" [nzTitle]="'在库包材总量'" [nzSuffix]="'个'"
                    [nzValueStyle]="{ color: 'red' }"></nz-statistic>
    </nz-col>

    <nz-col *ngFor="let s of ml">
      <nz-statistic [nzValue]="s.total" [nzTitle]="s.pm" [nzSuffix]="'个'"></nz-statistic>
    </nz-col>

  </nz-row>


</ng-template>
<ng-template #extraTemplate>


  <nz-radio-group  nzButtonStyle="solid">
    <label nz-radio-button nzValue="A" (click)="getDbdsByClqk('YCL')">已处理</label>
    <label nz-radio-button nzValue="B" (click)="getDbdsByClqk('WCL')">待处理</label>

  </nz-radio-group>


</ng-template>
